package main

import (
	"fmt"
)

func printHello(str string){
	for _,v:=range str{
		fmt.Printf("%c",v)

	}
}
var ch=make(chan int)
func person1(){
	printHello("person1....hello")
	ch<-666


}
func person2(){
	<-ch
	printHello("person2....world")
}
func main() {
	//flag:=make(chan bool)
	go person1()
	go person2()

	for{

		//fmt.Println("main主协程")
		//time.Sleep(time.Second)
		;
	}
}
